package com.xcc.commandpattern.demo02;

/**
 * @Description: Light
 * @Author: xiechuang
 * @Date: 2022/9/7
 */
public class Light {

    String description;

    public Light(String description) {
        this.description = description;
    }

    public void on() {
        System.out.println(description + " Light is On");
    }

    public void off() {
        System.out.println(description + " Light is Off");
    }
    
}
